#include"list.h"

int main()
{
	cxs::list<int> li;
	li.push_back(0);
	li.push_back(1);
	li.push_back(2);
	li.push_back(3);
	li.push_back(4);
	li.pop_front();
	li.pop_back();


	cxs::list<int>::iterator It = li.begin();
	
	while (It!=li.end())
	{
		cout << *It << " ";
		++It;
	}
	
	return 0;
}